#ifndef PARTY_SERVICE_H
#define PARTY_SERVICE_H

#include "service/authentication/authentication.pb.h"


#define PARTY_SERVICE_DECL( p )			static VOID On##p( UserSession * pUserSession, MSG_BASE * pMsg, WORD wSize )
#define PARTY_SERVICE_IMPL( p )			VOID PartyService::On##p( UserSession * pUserSession, MSG_BASE * pMsg, WORD wSize )
class UserSession;
class Service;
class PartyService : public Service
{
public:
	PartyService(DWORD dwIndex,const char* pstrDest)
	{   
		SetIndex(dwIndex);
		SetDest(pstrDest);
	}
	~PartyService(){}

	PARTY_SERVICE_DECL(PartyCreateChannel);
	PARTY_SERVICE_DECL(PartyGetChannelInfo);
	PARTY_SERVICE_DECL(PartyJoinChannel);

};
#endif